package com.example.bookrecommendationjava.model;

import java.util.List;

/**
 * @BelongsProject: book-recommendation-java
 * @BelongsPackage: com.example.bookrecommendationjava.model
 * @Author: ZhShy
 * @CreateTime: 2022-03-17 19:53
 * @Description:
 */
public class User {
    private Integer userId;
    private String userName;
    private String userPassword;
    private List<Integer> bookList;
    private Double cos_th;

    public Double getCos_th() {
        return cos_th;
    }

    public void setCos_th(Double cos_th) {
        this.cos_th = cos_th;
    }

    public User(Integer userId, String userName, String userPassword, List<Integer> bookList, Double cos_th) {
        this.userId = userId;
        this.userName = userName;
        this.userPassword = userPassword;
        this.bookList = bookList;
        this.cos_th = cos_th;
    }

    public List<Integer> getBookList() {
        return bookList;
    }

    public void setBookList(List<Integer> bookList) {
        this.bookList = bookList;
    }

    public User(Integer userId, String userName, String userPassword, List<Integer> bookList) {
        this.userId = userId;
        this.userName = userName;
        this.userPassword = userPassword;
        this.bookList = bookList;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getUserPassword() {
        return userPassword;
    }

    public void setUserPassword(String userPassword) {
        this.userPassword = userPassword;
    }

    public User() {
    }

    public User(Integer userId, String userName, String userPassword) {
        this.userId = userId;
        this.userName = userName;
        this.userPassword = userPassword;
    }

    public User(String userName, String userPassword) {
        this.userName = userName;
        this.userPassword = userPassword;
    }

    @Override
    public String toString() {
        return "User{" +
                "userId=" + userId +
                ", userName='" + userName + '\'' +
                ", userPassword='" + userPassword + '\'' +
                ", bookList=" + bookList +
                ", cos_th=" + cos_th +
                '}';
    }
}
